#include "UI_h/loginui.h"
#include "UI_h/chatui.h"
#include "voicechatui.h"
#include "Entity_h/user.h"
#include "DataBase_h/DataBaseConfig.h"
#include "Net_h/NetServerConfig.h"
#include "VoicePlayer_h/VoiceFileConfig.h"

#include <QApplication>
#include <QTcpSocket>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    //配置类读取配置文件，进行基本配置
    DataBaseConfig::GetInstance()->ReadFile("E:\\config/DataBaseConfig.txt");
    NetServerConfig::GetInstance()->ReadFile("E:\\config/NetServerConfig.txt");
    VoiceFileConfig::GetInstance()->ReadFile("E:\\config/DataTableConfig.txt");

    VoiceChatUI w;
    w.show();
//    ChatUI w;
//    w.show();

    return a.exec();
}
